<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>cr-statement: Libcroco Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Libcroco Reference Manual">
<link rel="up" href="ch01.html" title="Extensive APIs description">
<link rel="prev" href="libcroco-cr-simple-sel.html" title="cr-simple-sel">
<link rel="next" href="libcroco-cr-string.html" title="cr-string">
<meta name="generator" content="GTK-Doc V1.24 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#libcroco-cr-statement.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="libcroco-cr-simple-sel.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libcroco-cr-string.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="libcroco-cr-statement"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libcroco-cr-statement.top_of_page"></a>cr-statement</span></h2>
<p>cr-statement</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libcroco-cr-statement.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-does-buf-parses-against-core" title="cr_statement_does_buf_parses_against_core ()">cr_statement_does_buf_parses_against_core</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-parse-from-buf" title="cr_statement_parse_from_buf ()">cr_statement_parse_from_buf</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-new-ruleset" title="cr_statement_new_ruleset ()">cr_statement_new_ruleset</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-parse-from-buf" title="cr_statement_ruleset_parse_from_buf ()">cr_statement_ruleset_parse_from_buf</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-import-rule" title="cr_statement_new_at_import_rule ()">cr_statement_new_at_import_rule</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-parse-from-buf" title="cr_statement_at_import_rule_parse_from_buf ()">cr_statement_at_import_rule_parse_from_buf</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-media-rule" title="cr_statement_new_at_media_rule ()">cr_statement_new_at_media_rule</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-media-rule-parse-from-buf" title="cr_statement_at_media_rule_parse_from_buf ()">cr_statement_at_media_rule_parse_from_buf</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-charset-rule" title="cr_statement_new_at_charset_rule ()">cr_statement_new_at_charset_rule</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-charset-rule-parse-from-buf" title="cr_statement_at_charset_rule_parse_from_buf ()">cr_statement_at_charset_rule_parse_from_buf</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-font-face-rule" title="cr_statement_new_at_font_face_rule ()">cr_statement_new_at_font_face_rule</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-font-face-rule-parse-from-buf" title="cr_statement_font_face_rule_parse_from_buf ()">cr_statement_font_face_rule_parse_from_buf</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-page-rule" title="cr_statement_new_at_page_rule ()">cr_statement_new_at_page_rule</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-parse-from-buf" title="cr_statement_at_page_rule_parse_from_buf ()">cr_statement_at_page_rule_parse_from_buf</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-set-parent-sheet" title="cr_statement_set_parent_sheet ()">cr_statement_set_parent_sheet</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-get-parent-sheet" title="cr_statement_get_parent_sheet ()">cr_statement_get_parent_sheet</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-append" title="cr_statement_append ()">cr_statement_append</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-prepend" title="cr_statement_prepend ()">cr_statement_prepend</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-unlink" title="cr_statement_unlink ()">cr_statement_unlink</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-set-sel-list" title="cr_statement_ruleset_set_sel_list ()">cr_statement_ruleset_set_sel_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-get-sel-list" title="cr_statement_ruleset_get_sel_list ()">cr_statement_ruleset_get_sel_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-set-decl-list" title="cr_statement_ruleset_set_decl_list ()">cr_statement_ruleset_set_decl_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-get-declarations" title="cr_statement_ruleset_get_declarations ()">cr_statement_ruleset_get_declarations</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-append-decl2" title="cr_statement_ruleset_append_decl2 ()">cr_statement_ruleset_append_decl2</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-append-decl" title="cr_statement_ruleset_append_decl ()">cr_statement_ruleset_append_decl</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-set-imported-sheet" title="cr_statement_at_import_rule_set_imported_sheet ()">cr_statement_at_import_rule_set_imported_sheet</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-get-imported-sheet" title="cr_statement_at_import_rule_get_imported_sheet ()">cr_statement_at_import_rule_get_imported_sheet</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-set-url" title="cr_statement_at_import_rule_set_url ()">cr_statement_at_import_rule_set_url</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-get-url" title="cr_statement_at_import_rule_get_url ()">cr_statement_at_import_rule_get_url</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-media-nr-rules" title="cr_statement_at_media_nr_rules ()">cr_statement_at_media_nr_rules</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-media-get-from-list" title="cr_statement_at_media_get_from_list ()">cr_statement_at_media_get_from_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-set-sel" title="cr_statement_at_page_rule_set_sel ()">cr_statement_at_page_rule_set_sel</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-get-sel" title="cr_statement_at_page_rule_get_sel ()">cr_statement_at_page_rule_get_sel</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-set-declarations" title="cr_statement_at_page_rule_set_declarations ()">cr_statement_at_page_rule_set_declarations</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-get-declarations" title="cr_statement_at_page_rule_get_declarations ()">cr_statement_at_page_rule_get_declarations</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-charset-rule-set-charset" title="cr_statement_at_charset_rule_set_charset ()">cr_statement_at_charset_rule_set_charset</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-charset-rule-get-charset" title="cr_statement_at_charset_rule_get_charset ()">cr_statement_at_charset_rule_get_charset</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-font-face-rule-set-decls" title="cr_statement_at_font_face_rule_set_decls ()">cr_statement_at_font_face_rule_set_decls</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-font-face-rule-get-decls" title="cr_statement_at_font_face_rule_get_decls ()">cr_statement_at_font_face_rule_get_decls</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-at-font-face-rule-add-decl" title="cr_statement_at_font_face_rule_add_decl ()">cr_statement_at_font_face_rule_add_decl</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-to-string" title="cr_statement_to_string ()">cr_statement_to_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-list-to-string" title="cr_statement_list_to_string ()">cr_statement_list_to_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-dump" title="cr_statement_dump ()">cr_statement_dump</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-dump-ruleset" title="cr_statement_dump_ruleset ()">cr_statement_dump_ruleset</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-dump-font-face-rule" title="cr_statement_dump_font_face_rule ()">cr_statement_dump_font_face_rule</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-dump-page" title="cr_statement_dump_page ()">cr_statement_dump_page</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-dump-media-rule" title="cr_statement_dump_media_rule ()">cr_statement_dump_media_rule</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-dump-import-rule" title="cr_statement_dump_import_rule ()">cr_statement_dump_import_rule</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-dump-charset" title="cr_statement_dump_charset ()">cr_statement_dump_charset</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-nr-rules" title="cr_statement_nr_rules ()">cr_statement_nr_rules</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-get-from-list" title="cr_statement_get_from_list ()">cr_statement_get_from_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-statement.html#cr-statement-destroy" title="cr_statement_destroy ()">cr_statement_destroy</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libcroco-cr-statement.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRRuleSet" title="struct CRRuleSet">CRRuleSet</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRAtImportRule" title="struct CRAtImportRule">CRAtImportRule</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRAtMediaRule" title="struct CRAtMediaRule">CRAtMediaRule</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRAtPageRule" title="struct CRAtPageRule">CRAtPageRule</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRAtCharsetRule" title="struct CRAtCharsetRule">CRAtCharsetRule</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRAtFontFaceRule" title="struct CRAtFontFaceRule">CRAtFontFaceRule</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement">CRStatement</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet">CRStyleSheet</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libcroco-cr-statement.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="libcroco-cr-statement.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="cr-statement-does-buf-parses-against-core"></a><h3>cr_statement_does_buf_parses_against_core ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
cr_statement_does_buf_parses_against_core
                               (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
                                <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
<p><em class="parameter"><code>a_buf</code></em>
: the buffer to parse.
<em class="parameter"><code>a_encoding</code></em>
: the character encoding of a_buf.</p>
<p>Tries to parse a buffer and says whether if the content of the buffer
is a css statement as defined by the "Core CSS Grammar" (chapter 4 of the
css spec) or not.</p>
<p>Returns TRUE if the buffer parses against the core grammar, false otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-parse-from-buf"></a><h3>cr_statement_parse_from_buf ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_parse_from_buf (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
                             <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
<p><em class="parameter"><code>a_buf</code></em>
: the buffer to parse.
<em class="parameter"><code>a_encoding</code></em>
: the character encoding of a_buf.</p>
<p>Parses a buffer that contains a css statement and returns 
an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of successful parsing.
TODO: at support of "@import" rules.</p>
<p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case
of successful parsing, NULL otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-new-ruleset"></a><h3>cr_statement_new_ruleset ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_new_ruleset (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
                          <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel_list</code></em>,
                          <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>,
                          <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_media_rule</code></em>);</pre>
<p><em class="parameter"><code>a_sel_list</code></em>
: the list of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> (selectors)
the rule applies to.
<em class="parameter"><code>a_decl_list</code></em>
: the list of instances of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>
that composes the ruleset.
<em class="parameter"><code>a_media_types</code></em>
: a list of instances of GString that
describe the media list this ruleset applies to.</p>
<p>Creates a new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
<span class="type">CRRulSet</span>.</p>
<p>Returns the new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> or NULL if something
went wrong.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-ruleset-parse-from-buf"></a><h3>cr_statement_ruleset_parse_from_buf ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_ruleset_parse_from_buf (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
                                     <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
<p><em class="parameter"><code>a_buf</code></em>
: the buffer to parse.
<em class="parameter"><code>a_enc</code></em>
: the character encoding of a_buf.</p>
<p>Parses a buffer that contains a ruleset statement an instanciates
a <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type RULESET_STMT.</p>
<p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of successful parsing,
NULL otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-new-at-import-rule"></a><h3>cr_statement_new_at_import_rule ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_new_at_import_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_container_sheet</code></em>,
                                 <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_url</code></em>,
                                 <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *a_media_list</code></em>,
                                 <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_imported_sheet</code></em>);</pre>
<p><em class="parameter"><code>a_url</code></em>
: the url to connect to the get the file
to be imported.
<em class="parameter"><code>a_sheet</code></em>
: the imported parsed stylesheet.</p>
<p>Creates a new instance of <span class="type">CRStatment</span> of type
<a class="link" href="libcroco-cr-statement.html#CRAtImportRule" title="struct CRAtImportRule"><span class="type">CRAtImportRule</span></a>.</p>
<p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-import-rule-parse-from-buf"></a><h3>cr_statement_at_import_rule_parse_from_buf ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_at_import_rule_parse_from_buf
                               (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
                                <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
<p><em class="parameter"><code>a_buf</code></em>
: the buffer to parse.
<em class="parameter"><code>a_encoding</code></em>
: the encoding of a_buf.</p>
<p>Parses a buffer that contains an "@import" rule and
instanciate a <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type AT_IMPORT_RULE_STMT</p>
<p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of 
a successful parsing, NULL otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-new-at-media-rule"></a><h3>cr_statement_new_at_media_rule ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_new_at_media_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
                                <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_ruleset</code></em>,
                                <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *a_media</code></em>);</pre>
<p><em class="parameter"><code>a_ruleset</code></em>
: the ruleset statements contained
in the @media rule.
<em class="parameter"><code>a_media</code></em>
: the media string list. A list of GString pointers.</p>
<p>Instanciates an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
AT_MEDIA_RULE_STMT (@media ruleset).</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-media-rule-parse-from-buf"></a><h3>cr_statement_at_media_rule_parse_from_buf ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_at_media_rule_parse_from_buf
                               (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
                                <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
<p><em class="parameter"><code>a_buf</code></em>
: the input to parse.
<em class="parameter"><code>a_enc</code></em>
: the encoding of the buffer.</p>
<p>Parses a buffer that contains an "@media" declaration
and builds an @media css statement.</p>
<p>Returns the @media statement, or NULL if the buffer could not
be successfully parsed.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-new-at-charset-rule"></a><h3>cr_statement_new_at_charset_rule ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_new_at_charset_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
                                  <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_charset</code></em>);</pre>
<p><em class="parameter"><code>a_charset</code></em>
: the string representing the charset.
Note that the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> becomes
the owner of a_charset. The caller must not free a_charset !!!.</p>
<p>Creates a new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
<a class="link" href="libcroco-cr-statement.html#CRAtCharsetRule" title="struct CRAtCharsetRule"><span class="type">CRAtCharsetRule</span></a>.</p>
<p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> or NULL
if an error arises.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-charset-rule-parse-from-buf"></a><h3>cr_statement_at_charset_rule_parse_from_buf ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_at_charset_rule_parse_from_buf
                               (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
                                <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
<p><em class="parameter"><code>a_buf</code></em>
: the buffer to parse.
<em class="parameter"><code>a_encoding</code></em>
: the character encoding of the buffer.</p>
<p>Parses a buffer that contains an '@charset' rule and
creates an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type AT_CHARSET_RULE_STMT.</p>
<p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-new-at-font-face-rule"></a><h3>cr_statement_new_at_font_face_rule ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_new_at_font_face_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
                                    <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_font_decls</code></em>);</pre>
<p><em class="parameter"><code>a_font_decls</code></em>
: a list of instances of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>. Each declaration
is actually a font declaration.</p>
<p>Creates an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type <a class="link" href="libcroco-cr-statement.html#CRAtFontFaceRule" title="struct CRAtFontFaceRule"><span class="type">CRAtFontFaceRule</span></a>.</p>
<p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-font-face-rule-parse-from-buf"></a><h3>cr_statement_font_face_rule_parse_from_buf ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_font_face_rule_parse_from_buf
                               (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
                                <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
<p><em class="parameter"><code>a_buf</code></em>
: the buffer to parse.
<em class="parameter"><code>a_encoding</code></em>
: the character encoding of a_buf.</p>
<p>Parses a buffer that contains an "@font-face" rule and builds
an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type AT_FONT_FACE_RULE_STMT out of it.</p>
<p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of successufull
parsing, NULL otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-new-at-page-rule"></a><h3>cr_statement_new_at_page_rule ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_new_at_page_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
                               <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>,
                               <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_name</code></em>,
                               <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_pseudo</code></em>);</pre>
<p><em class="parameter"><code>a_decl_list</code></em>
: a list of instances of <a href="libcroco-cr-declaration.html#CRDeclaration"><span class="type">CRDeclarations</span></a>
which is actually the list of declarations that applies to
this page rule.
<em class="parameter"><code>a_selector</code></em>
: the page rule selector.</p>
<p>Creates a new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
<a class="link" href="libcroco-cr-statement.html#CRAtPageRule" title="struct CRAtPageRule"><span class="type">CRAtPageRule</span></a>.</p>
<p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> or NULL
in case of error.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-page-rule-parse-from-buf"></a><h3>cr_statement_at_page_rule_parse_from_buf ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_at_page_rule_parse_from_buf
                               (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
                                <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
<p><em class="parameter"><code>a_buf</code></em>
: the character buffer to parse.
<em class="parameter"><code>a_encoding</code></em>
: the character encoding of a_buf.</p>
<p>Parses a buffer that contains an "@page" production and,
if the parsing succeeds, builds the page statement.</p>
<p>Returns the newly built at page statement in case of successful parsing,
NULL otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-set-parent-sheet"></a><h3>cr_statement_set_parent_sheet ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_set_parent_sheet (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                               <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
<em class="parameter"><code>a_sheet</code></em>
: the sheet that contains the current statement.</p>
<p>Sets the container stylesheet.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-get-parent-sheet"></a><h3>cr_statement_get_parent_sheet ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_get_parent_sheet (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                               <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> **a_sheet</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
<em class="parameter"><code>a_sheet</code></em>
: out parameter. A pointer to the sheets that</p>
<p>Gets the sheets that contains the current statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-append"></a><h3>cr_statement_append ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_append (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                     <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_new</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of the statement list.
<em class="parameter"><code>a_new</code></em>
: a_new the new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> to append.</p>
<p>Appends a new statement to the statement list.</p>
<p>Returns the new list statement list, or NULL in cas of failure.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-prepend"></a><h3>cr_statement_prepend ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_prepend (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                      <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_new</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
<em class="parameter"><code>a_new</code></em>
: the new statement to prepend.</p>
<p>Prepends the an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> to
the current statement list.</p>
<p>Returns the new list with the new statement prepended,
or NULL in case of an error.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-unlink"></a><h3>cr_statement_unlink ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_unlink (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_stmt</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current statements list.
<em class="parameter"><code>a_to_unlink</code></em>
: the statement to unlink from the list.</p>
<p>Unlinks a statement from the statements list.</p>
<p>Returns the new list where a_to_unlink has been unlinked
from, or NULL in case of error.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-ruleset-set-sel-list"></a><h3>cr_statement_ruleset_set_sel_list ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_ruleset_set_sel_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                   <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel_list</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current ruleset statement.
<em class="parameter"><code>a_sel_list</code></em>
: the selector list to set. Note
that this function increments the ref count of a_sel_list.
The sel list will be destroyed at the destruction of the
current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
<p>Sets a selector list to a ruleset statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-ruleset-get-sel-list"></a><h3>cr_statement_ruleset_get_sel_list ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_ruleset_get_sel_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                                   <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> **a_list</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current ruleset statement.
<em class="parameter"><code>a_list</code></em>
: out parameter. The returned selector list,
if and only if the function returned CR_OK.</p>
<p>Gets a pointer to the selector list contained in
the current ruleset statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-ruleset-set-decl-list"></a><h3>cr_statement_ruleset_set_decl_list ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_ruleset_set_decl_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                    <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_list</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current ruleset statement.
<em class="parameter"><code>a_list</code></em>
: the declaration list to be added to the current
ruleset statement.</p>
<p>Sets a declaration list to the current ruleset statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-ruleset-get-declarations"></a><h3>cr_statement_ruleset_get_declarations ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_ruleset_get_declarations (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                       <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decl_list</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
<em class="parameter"><code>a_decl_list</code></em>
: out parameter. A pointer to the the returned
list of declaration. Must not be NULL.</p>
<p>Gets a pointer to the list of declaration contained
in the ruleset statement.</p>
<p>Returns CR_OK upon successful completion, an error code if something
bad happened.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-ruleset-append-decl2"></a><h3>cr_statement_ruleset_append_decl2 ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_ruleset_append_decl2 (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                   <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_prop</code></em>,
                                   <em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current statement.
<em class="parameter"><code>a_prop</code></em>
: the property of the declaration.
<em class="parameter"><code>a_value</code></em>
: the value of the declaration.</p>
<p>Appends a declaration to the current ruleset statement.</p>
<p>Returns CR_OK upon successful completion, an error code
otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-ruleset-append-decl"></a><h3>cr_statement_ruleset_append_decl ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_ruleset_append_decl (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                  <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl</code></em>);</pre>
<p>Appends a declaration to the current statement.</p>
<p><em class="parameter"><code>a_this</code></em>
: the current statement.
<em class="parameter"><code>a_declaration</code></em>
: the declaration to append.</p>
<p>Returns CR_OK upon sucessful completion, an error code
otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-import-rule-set-imported-sheet"></a><h3>cr_statement_at_import_rule_set_imported_sheet ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_import_rule_set_imported_sheet
                               (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>);</pre>
<p>Sets a stylesheet to the current @import rule.
<em class="parameter"><code>a_this</code></em>
: the current @import rule.
<em class="parameter"><code>a_sheet</code></em>
: the stylesheet. The stylesheet is owned
by the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>, that is, the 
stylesheet will be destroyed when the current instance
of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> is destroyed.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-import-rule-get-imported-sheet"></a><h3>cr_statement_at_import_rule_get_imported_sheet ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_import_rule_get_imported_sheet
                               (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> **a_sheet</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current @import rule statement.
<em class="parameter"><code>a_sheet</code></em>
: out parameter. The returned stylesheet if and
only if the function returns CR_OK.</p>
<p>Gets the stylesheet contained by the @import rule statement.
Returns CR_OK upon sucessful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-import-rule-set-url"></a><h3>cr_statement_at_import_rule_set_url ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_import_rule_set_url (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                     <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_url</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current @import rule statement.
<em class="parameter"><code>a_url</code></em>
: the url to set.</p>
<p>Sets an url to the current @import rule statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-import-rule-get-url"></a><h3>cr_statement_at_import_rule_get_url ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_import_rule_get_url (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                                     <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_url</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current @import rule statement.
<em class="parameter"><code>a_url</code></em>
: out parameter. The returned url if
and only if the function returned CR_OK.</p>
<p>Gets the url of the @import rule statement.
Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-media-nr-rules"></a><h3>cr_statement_at_media_nr_rules ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
cr_statement_at_media_nr_rules (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
<p>Returns the number of rules in the media rule;</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-media-get-from-list"></a><h3>cr_statement_at_media_get_from_list ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_at_media_get_from_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                     <em class="parameter"><code><span class="type">int</span> itemnr</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
<em class="parameter"><code>itemnr</code></em>
: the index into the media rule list of rules.</p>
<p>Use an index to get a CRStatement from the media rule list of rules.</p>
<p>Returns CRStatement at position itemnr, if itemnr &gt; number of rules - 1,
it will return NULL.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-page-rule-set-sel"></a><h3>cr_statement_at_page_rule_set_sel ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_page_rule_set_sel (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                   <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-page-rule-get-sel"></a><h3>cr_statement_at_page_rule_get_sel ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_page_rule_get_sel (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                                   <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> **a_sel</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-page-rule-set-declarations"></a><h3>cr_statement_at_page_rule_set_declarations ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_page_rule_set_declarations
                               (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current @page rule statement.
<em class="parameter"><code>a_decl_list</code></em>
: the declaration list to add. Will be freed
by the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> when it is destroyed.</p>
<p>Sets a declaration list to the current @page rule statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-page-rule-get-declarations"></a><h3>cr_statement_at_page_rule_get_declarations ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_page_rule_get_declarations
                               (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decl_list</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current @page rule statement.
<em class="parameter"><code>a_decl_list</code></em>
: out parameter. The returned declaration list.</p>
<p>Gets the declaration list associated to the current @page rule
statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-charset-rule-set-charset"></a><h3>cr_statement_at_charset_rule_set_charset ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_charset_rule_set_charset
                               (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_charset</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current @charset rule statement.
<em class="parameter"><code>a_charset</code></em>
: the charset to set.</p>
<p>Sets the charset of the current @charset rule statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-charset-rule-get-charset"></a><h3>cr_statement_at_charset_rule_get_charset ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_charset_rule_get_charset
                               (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                                <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_charset</code></em>);</pre>
<p>Gets the charset string associated to the current
@charset rule statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
<div class="refsect3">
<a name="id-1.2.20.6.38.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>a_this</p></td>
<td class="parameter_description"><p>the current @charset rule statement.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>a_charset</p></td>
<td class="parameter_description"><p>out parameter. The returned charset string if
and only if the function returned CR_OK.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-font-face-rule-set-decls"></a><h3>cr_statement_at_font_face_rule_set_decls ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_font_face_rule_set_decls
                               (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decls</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current @font-face rule statement.
<em class="parameter"><code>a_decls</code></em>
: the declarations list to set.</p>
<p>Sets a declaration list to the current @font-face rule statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-font-face-rule-get-decls"></a><h3>cr_statement_at_font_face_rule_get_decls ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_font_face_rule_get_decls
                               (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decls</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current @font-face rule statement.
<em class="parameter"><code>a_decls</code></em>
: out parameter. The returned declaration list if
and only if this function returns CR_OK.</p>
<p>Gets the declaration list associated to the current instance
of @font-face rule statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-at-font-face-rule-add-decl"></a><h3>cr_statement_at_font_face_rule_add_decl ()</h3>
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
cr_statement_at_font_face_rule_add_decl
                               (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                                <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_prop</code></em>,
                                <em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current @font-face rule statement.
<em class="parameter"><code>a_prop</code></em>
: the property of the declaration.
<em class="parameter"><code>a_value</code></em>
: the value of the declaration.</p>
<p>Adds a declaration to the current @font-face rule
statement.</p>
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-to-string"></a><h3>cr_statement_to_string ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
cr_statement_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                        <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current statement to serialize
<em class="parameter"><code>a_indent</code></em>
: the number of white space of indentation.</p>
<p>Serializes a css statement into a string</p>
<p>Returns the serialized statement. Must be freed by the caller
using <a href="https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-list-to-string"></a><h3>cr_statement_list_to_string ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
cr_statement_list_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                             <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-dump"></a><h3>cr_statement_dump ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cr_statement_dump (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                   <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
                   <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current css2 statement.
<em class="parameter"><code>a_fp</code></em>
: the destination file pointer.
<em class="parameter"><code>a_indent</code></em>
: the number of white space indentation characters.</p>
<p>Dumps the css2 statement to a file.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-dump-ruleset"></a><h3>cr_statement_dump_ruleset ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cr_statement_dump_ruleset (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                           <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
                           <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_indent</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
<em class="parameter"><code>a_fp</code></em>
: the destination file pointer.
<em class="parameter"><code>a_indent</code></em>
: the number of indentation white spaces to add.</p>
<p>Dumps a ruleset statement to a file.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-dump-font-face-rule"></a><h3>cr_statement_dump_font_face_rule ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cr_statement_dump_font_face_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                                  <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
                                  <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_indent</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of font face rule statement.
<em class="parameter"><code>a_fp</code></em>
: the destination file pointer.
<em class="parameter"><code>a_indent</code></em>
: the number of white space indentation.</p>
<p>Dumps a font face rule statement to a file.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-dump-page"></a><h3>cr_statement_dump_page ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cr_statement_dump_page (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                        <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
                        <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the statement to dump on stdout.
<em class="parameter"><code>a_fp</code></em>
: the destination file pointer.
<em class="parameter"><code>a_indent</code></em>
: the number of indentation white spaces.</p>
<p>Dumps an @page rule statement on stdout.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-dump-media-rule"></a><h3>cr_statement_dump_media_rule ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cr_statement_dump_media_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                              <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
                              <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the statement to dump.
<em class="parameter"><code>a_fp</code></em>
: the destination file pointer
<em class="parameter"><code>a_indent</code></em>
: the number of white spaces indentation.</p>
<p>Dumps an @media rule statement to a file.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-dump-import-rule"></a><h3>cr_statement_dump_import_rule ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cr_statement_dump_import_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                               <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
                               <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
<p><em class="parameter"><code>a_fp</code></em>
: the destination file pointer.
<em class="parameter"><code>a_indent</code></em>
: the number of white space indentations.</p>
<p>Dumps an @import rule statement to a file.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-dump-charset"></a><h3>cr_statement_dump_charset ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cr_statement_dump_charset (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
                           <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
                           <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of the @charset rule statement.
<em class="parameter"><code>a_fp</code></em>
: the destination file pointer.
<em class="parameter"><code>a_indent</code></em>
: the number of indentation white spaces.</p>
<p>Dumps an @charset rule statement to a file.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-nr-rules"></a><h3>cr_statement_nr_rules ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
cr_statement_nr_rules (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
<p>Gets the number of rules in the statement list;</p>
<p>Returns number of rules in the statement list.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-get-from-list"></a><h3>cr_statement_get_from_list ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_statement_get_from_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
                            <em class="parameter"><code><span class="type">int</span> itemnr</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
<em class="parameter"><code>itemnr</code></em>
: the index into the statement list.</p>
<p>Use an index to get a CRStatement from the statement list.</p>
<p>Returns CRStatement at position itemnr, if itemnr &gt; number of statements - 1,
it will return NULL.</p>
</div>
<hr>
<div class="refsect2">
<a name="cr-statement-destroy"></a><h3>cr_statement_destroy ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cr_statement_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>);</pre>
<p><em class="parameter"><code>a_this</code></em>
: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
<p>Destructor of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
</div>
</div>
<div class="refsect1">
<a name="libcroco-cr-statement.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="CRRuleSet"></a><h3>struct CRRuleSet</h3>
<pre class="programlisting">struct CRRuleSet {
	/**A list of instances of #CRSimpeSel*/
	CRSelector *sel_list ;

	/**A list of instances of #CRDeclaration*/
	CRDeclaration *decl_list ;
	
	/**
	 *The parent media rule, or NULL if
	 *no parent media rule exists.
	 */
	CRStatement *parent_media_rule ;
};
</pre>
</div>
<hr>
<div class="refsect2">
<a name="CRAtImportRule"></a><h3>struct CRAtImportRule</h3>
<pre class="programlisting">struct CRAtImportRule {
	/**the url of the import rule*/
	CRString *url ;

        GList *media_list ;

	/**
	 *the stylesheet fetched from the url, if any.
	 *this is not "owned" by #CRAtImportRule which means
	 *it is not destroyed by the destructor of #CRAtImportRule.
	 */
	CRStyleSheet * sheet;
};
</pre>
</div>
<hr>
<div class="refsect2">
<a name="CRAtMediaRule"></a><h3>struct CRAtMediaRule</h3>
<pre class="programlisting">struct CRAtMediaRule {
	GList *media_list ;
	CRStatement *rulesets ;	
};
</pre>
</div>
<hr>
<div class="refsect2">
<a name="CRAtPageRule"></a><h3>struct CRAtPageRule</h3>
<pre class="programlisting">struct CRAtPageRule {
	/**a list of instances of #CRDeclaration*/
	CRDeclaration *decl_list ;

	/**page selector. Is a pseudo selector*/
	CRString *name ;
	CRString *pseudo ;
};
</pre>
</div>
<hr>
<div class="refsect2">
<a name="CRAtCharsetRule"></a><h3>struct CRAtCharsetRule</h3>
<pre class="programlisting">struct CRAtCharsetRule {
	CRString * charset ;
};
</pre>
</div>
<hr>
<div class="refsect2">
<a name="CRAtFontFaceRule"></a><h3>struct CRAtFontFaceRule</h3>
<pre class="programlisting">struct CRAtFontFaceRule {
	/*a list of instanaces of #CRDeclaration*/
	CRDeclaration *decl_list ;
};
</pre>
</div>
<hr>
<div class="refsect2">
<a name="CRStatement"></a><h3>CRStatement</h3>
<pre class="programlisting">typedef struct {
	/**
	 *The type of the statement.
	 */
	enum CRStatementType type ;

	union
	{
		CRRuleSet *ruleset ;
		CRAtImportRule *import_rule ;
		CRAtMediaRule *media_rule ;
		CRAtPageRule *page_rule ;
		CRAtCharsetRule *charset_rule ;
		CRAtFontFaceRule *font_face_rule ;
	} kind ;

        /*
         *the specificity of the selector
         *that matched this statement.
         *This is only used by the cascading
         *order determination algorithm.
         */
        gulong specificity ;

        /*
         *the style sheet that contains
         *this css statement.
         */
        CRStyleSheet *parent_sheet ;
	CRStatement *next ;
	CRStatement *prev ;

        CRParsingLocation location ;

        /**
         *a custom pointer useable by
         *applications that use libcroco.
         *libcroco itself will never modify
         *this pointer.
         */        
        gpointer app_data ;

        /**
         *a custom pointer used
         *by the upper layers of libcroco.
         *application should never use this
         *pointer.
         */
        gpointer croco_data ;
} CRStatement;
</pre>
</div>
<hr>
<div class="refsect2">
<a name="CRStyleSheet"></a><h3>CRStyleSheet</h3>
<pre class="programlisting">typedef struct {
	/**The css statements list*/
	CRStatement *statements ;

        enum CRStyleOrigin origin ;

        /*the parent import rule, if any.*/
        CRStatement *parent_import_rule ;

	/**custom data used by libcroco*/
	gpointer croco_data ;

	/**
	 *custom application data pointer
	 *Can be used by applications.
	 */
	gpointer app_data ;

	/**
	 *the reference count of this insance
	 *Please, don't never ever modify it
	 *directly. Use cr_stylesheet_ref()
	 *and cr_stylesheet_unref() instead.
	 */
	gulong ref_count ;
} CRStyleSheet;
</pre>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.24</div>
</body>
</html>